package org.dtrevien.metamodel.graphviz;

import org.dtrevien.metamodel.graphviz.visitor.Visitor;


public class NodeId {
	
	protected String name;
	protected Port port; //Can be null
	
	public NodeId() {
	}

	public NodeId(String name, Port port) {
		super();
		this.name = name;
		this.port = port;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Port getPort() {
		return this.port;
	}

	public void setPort(Port port) {
		this.port = port;
	}

	public void accept(Visitor v) {
		v.visitNodeId(this);
	}
	
}
